package operation;

import book.Book;
import book.BookList;

/**
 * @program: 11.22
 * @description:
 * @author: 李鑫月
 * @create: 2021-11-22 21:19
 **/
public class DisplayOperation implements IOperation{
    public void work(BookList bookList){
        System.out.println("展示图书");
        int size=bookList.getUsedsize();
        for (int i = 0; i <size ; i++) {
            Book book=bookList.getposbook(i);
            System.out.println(book);
        }
    }
}
